import { RouteObject } from 'react-router-dom';
import { defineRouteConfig, i18n, lazy } from 'src/utils';
import { FeatureErrorBoundary } from 'src/feature-antd';
export const Index: RouteObject = defineRouteConfig({
  index: true,
  name: 'HOME_DASHBOARD_INDEX',
  lazy: lazy(() => import('./element')),
  errorElement: <FeatureErrorBoundary />,
  meta: {
    title: i18n.getLocaleDataByKey(({ pages }) => pages.HOME_DASHBOARD_INDEX),
  },
});

export default Index;
